package baseclass.m_graph;

import java.util.ArrayList;
import java.util.List;

/**
 * 图的顶点
 * @date 2020/3/6 18:29
 */
public class Node {

    List<Node> nexts;//所有要到达的节点
    List<Edge> edges; //添加出的边，和nexts对应
    int in;//入读
    int out;//出度
    int val;//顶点的值

    public Node(int val) {
        this.val = val;
        in = 0;
        out = 0;
        nexts = new ArrayList<>();
        edges = new ArrayList<>();
    }
}
